home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / gfx / jpegv6bi.lha / doc / wrjpgcom.man < prev   
Text File  |  1995-09-05  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. WRJPGCOM(1)                                           WRJPGCOM(1)
  5.  
  6.  
  7. NAME
  8.        wrjpgcom - insert text comments into a JPEG file
  9.  
  10. SYNOPSIS
  11.        wrjpgcom  [ -replace ] [ -comment text ] [ -cfile name ] [
  12.        filename ]
  13.  
  14.  
  15. DESCRIPTION
  16.        wrjpgcom reads the named JPEG/JFIF file, or  the  standard
  17.        input  if  no file is named, and generates a new JPEG/JFIF
  18.        file on standard output.  A comment block is added to  the
  19.        file.
  20.  
  21.        The  JPEG  standard allows "comment" (COM) blocks to occur
  22.        within a JPEG file.  Although the standard  doesn't  actu­
  23.        ally  define what COM blocks are for, they are widely used
  24.        to hold user-supplied text strings.   This  lets  you  add
  25.        annotations,  titles, index terms, etc to your JPEG files,
  26.        and later retrieve them as text.  COM blocks do not inter­
  27.        fere  with the image stored in the JPEG file.  The maximum
  28.        size of a COM block is 64K, but you can have  as  many  of
  29.        them as you like in one JPEG file.
  30.  
  31.        wrjpgcom adds a COM block, containing text you provide, to
  32.        a JPEG file.  Ordinarily, the COM block is added after any
  33.        existing COM blocks; but you can delete the old COM blocks
  34.        if you wish.
  35.  
  36. OPTIONS
  37.        Switch names may be abbreviated, and are not  case  sensi­
  38.        tive.
  39.  
  40.        -replace
  41.               Delete any existing COM blocks from the file.
  42.  
  43.        -comment text
  44.               Supply text for new COM block on command line.
  45.  
  46.        -cfile name
  47.               Read text for new COM block from named file.
  48.  
  49.        If  you have only one line of comment text to add, you can
  50.        provide it on the command line with -comment.  The comment
  51.        text  must be surrounded with quotes so that it is treated
  52.        as a single argument.  Longer comments can be read from  a
  53.        text file.
  54.  
  55.        If  you  give  neither  -comment nor -cfile, then wrjpgcom
  56.        will read the comment text from standard input.  (In  this
  57.        case  an  input  image file name MUST be supplied, so that
  58.        the source JPEG file comes from somewhere else.)  You  can
  59.        enter  multiple  lines, up to 64KB worth.  Type an end-of-
  60.        file  indicator  (usually  control-D)  to  terminate   the
  61.  
  62.  
  63.  
  64.                            15 June 1995                         1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. WRJPGCOM(1)                                           WRJPGCOM(1)
  71.  
  72.  
  73.        comment text entry.
  74.  
  75.        wrjpgcom  will not add a COM block if the provided comment
  76.        string is empty.  Therefore -replace -comment  ""  can  be
  77.        used to delete all COM blocks from a file.
  78.  
  79. EXAMPLES
  80.        Add a short comment to in.jpg, producing out.jpg:
  81.  
  82.               wrjpgcom -c "View of my back yard" in.jpg > out.jpg
  83.  
  84.        Attach a long comment previously stored in comment.txt:
  85.  
  86.               wrjpgcom in.jpg < comment.txt > out.jpg
  87.  
  88.        or equivalently
  89.  
  90.               wrjpgcom -cfile comment.txt < in.jpg > out.jpg
  91.  
  92. SEE ALSO
  93.        cjpeg(1), djpeg(1), jpegtran(1), rdjpgcom(1)
  94.  
  95. AUTHOR
  96.        Independent JPEG Group
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                            15 June 1995                         2
  131.  
  132.  
  133.